package dao;

import java.sql.Connection;
import java.util.List;

import model.Datentraeger;


public interface DatentraegerSqlDAO extends SqlDao<Datentraeger> 
{
	static final String D_ID 			= "D_id";
	static final String D_NAME 			= "D_Name";
	static final String D_DATUM 		= "D_Datum";
	static final String D_TIMESTAMP 	= "D_TimeStamp";
	

	/**
	 * @param connection
	 * @return
	 */
	int deleteAllDatentraeger(Connection connection);

	/**
	 * @param connection
	 * @param id
	 * @return
	 */
	Datentraeger findById(Connection connection, Long id);

	/**
	 * @param connection
	 * @param part
	 * @return
	 */
	List<Datentraeger> findByNamePart(Connection connection, String part);

	/**
	 * @param connection
	 * @return
	 */
	List<Datentraeger> findAll(Connection connection);
}
